from django.contrib.auth.views import LogoutView
from django.urls import path
from .views import (ResourceList,UserList,RoleList,ParentSourceListView,CreateChildSourceView,
                    RoleListView,RoleSourceListView,CreateUserView,UpdateRoleSourceView,LoginView
                    ,LoginOutView,RetokenView)



urlpatterns = [
    path('slist/', ResourceList.as_view(), name='resource-list'),
    path('ulist/', UserList.as_view(), name='user-list'),
    path('rlist/', RoleList.as_view(), name='role-list'),
    path('create/', CreateUserView.as_view(), name='create-user'),
    path('psource/', ParentSourceListView.as_view()),
    path('csource/', CreateChildSourceView.as_view()),
    path('rsource/', RoleListView.as_view()),

    path('rslist/', RoleSourceListView.as_view()),
    path('urs/', UpdateRoleSourceView.as_view()),
    path('login/', LoginView.as_view()),
    path('loginout/', LoginOutView.as_view()),
    path('retoken/', RetokenView.as_view())

]